
package com.hlkj.pay.app.order;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import com.hlkj.framework.common.pojo.CommonResult;
import com.hlkj.pay.infrastructure.model.order.OrderWithdrawDO;
import com.hlkj.pay.vo.openapi.order.req.OpenApiOrderQueryReq;
import com.hlkj.pay.vo.openapi.order.req.OpenApiOrderWithdrawReq;
import com.hlkj.pay.vo.openapi.order.resp.OpenApiOrderWithdrawResp;
import com.hlkj.pay.vo.order.req.OrderWithdrawReq;
import com.hlkj.pay.vo.order.resp.OrderWithdrawResp;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;

/**
 * @author HlpayTeam
 * @date 2024/10/09 13:50
 */
public interface IWithdrawOrderAppService {

    /**
     *
     * @param channelCode
     * @param providerCode
     * @param request
     * @return
     */
    String orderStatusCallBack(String channelCode, String providerCode, HttpServletRequest request);

    /**
     *
     * @param orderWithdrawReq
     * @return
     */
    CommonResult<OpenApiOrderWithdrawResp> submitOrder(@Valid OpenApiOrderWithdrawReq orderWithdrawReq);

    /**
     *
     * @param orderQueryReq
     * @return
     */
    CommonResult<OpenApiOrderWithdrawResp> queryOrder(OpenApiOrderQueryReq orderQueryReq);

    /**
     *
     * @param orderWithdrawReq
     * @return
     */
    CommonResult<OrderWithdrawResp> submitOrder(OrderWithdrawReq orderWithdrawReq);
    boolean queryPayStatus(OrderWithdrawDO orderWithdrawDO);
}
